From: Gunnar Hjalmarsson Date: Tue, 6 Dec 2022 12:27:38 +0000 (+0100) Subject: New upstream version 1.1.5+ds1 X-Git-Tag: archive/raspbian/1.1.9+ds1-4+rpi1^2^2~15^2~4 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/%22bookmarks:/?a=commitdiff_plain;h=c577be8f9c0bfd4a74a2605da7ac46f748bbb033;p=opencc.git New upstream version 1.1.5+ds1 --- diff --git a/.appveyor.yml b/.appveyor.yml index bde79a0..a4c2091 100644 --- a/.appveyor.yml +++ b/.appveyor.yml @@ -9,9 +9,8 @@ environment: matrix: # Build Node.js - nodejs_version: stable + - nodejs_version: 18 - nodejs_version: 16 - - nodejs_version: 14 - - nodejs_version: 12 # Build plain C++ - nodejs_version: none diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index 4f4344e..0c8df47 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -13,7 +13,7 @@ jobs: strategy: matrix: - node-version: [12.x, 14.x, 16.x] + node-version: [16.x, 18.x] steps: - uses: actions/checkout@v2 diff --git a/.github/workflows/python.yml b/.github/workflows/python.yml index e7f6ee7..b7ad7b6 100644 --- a/.github/workflows/python.yml +++ b/.github/workflows/python.yml @@ -12,7 +12,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: [3.7, 3.8, 3.9, '3.10'] + python-version: [3.7, 3.8, 3.9, '3.10', '3.11'] steps: - uses: actions/checkout@v2 diff --git a/.travis.yml b/.travis.yml index 2e7269c..f0e2216 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,9 +6,8 @@ cache: node_js: - stable + - 18 - 16 - - 14 - - 12 os: - linux diff --git a/CMakeLists.txt b/CMakeLists.txt index d2ae987..d407e99 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -42,7 +42,7 @@ set (PACKAGE_URL https://github.com/BYVoid/Opencc) set (PACKAGE_BUGREPORT https://github.com/BYVoid/Opencc/issues) set (OPENCC_VERSION_MAJOR 1) set (OPENCC_VERSION_MINOR 1) -set (OPENCC_VERSION_REVISION 4) +set (OPENCC_VERSION_REVISION 5) if (CMAKE_BUILD_TYPE MATCHES Debug) set (version_suffix .Debug) @@ -221,7 +221,7 @@ if (BUILD_PYTHON) if(USE_SYSTEM_PYBIND11) find_package(pybind11 CONFIG) else() - add_subdirectory(deps/pybind11-2.5.0) + add_subdirectory(deps/pybind11-2.10.0) endif() pybind11_add_module(opencc_clib src/py_opencc.cpp) target_link_libraries(opencc_clib PRIVATE libopencc) diff --git a/NEWS.md b/NEWS.md index 1056b79..fa6e2ef 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,11 +1,20 @@ # Change History of OpenCC +## Version 1.1.5 + +2022年12月03日 + +* 支持Python 3.11 ([#728](https://github.com/BYVoid/OpenCC/pull/728))。 +* Automatically name SO files ([#708](https://github.com/BYVoid/OpenCC/pull/708)) +* Add support for Apple silicon build tag ([#716](https://github.com/BYVoid/OpenCC/pull/716)) +* 若干其他小修復。 + ## Version 1.1.4 2022年6月4日 -* 支持Python 3.10([#637](https://github.com/BYVoid/OpenCC/issues/637)。 -* 移除针对Python 2.7、3.5、3.6和Node 10的构建([#690](https://github.com/BYVoid/OpenCC/issues/690), [#691](https://github.com/BYVoid/OpenCC/issues/691))。 +* 支持Python 3.10([#637](https://github.com/BYVoid/OpenCC/issues/637))。 +* 移除針對Python 2.7、3.5、3.6和Node 10的構建([#690](https://github.com/BYVoid/OpenCC/issues/690), [#691](https://github.com/BYVoid/OpenCC/issues/691))。 * 若干其他小修復。 ## Version 1.1.3 diff --git a/data/dictionary/STPhrases.txt b/data/dictionary/STPhrases.txt index 5798c78..078e2b5 100644 --- a/data/dictionary/STPhrases.txt +++ b/data/dictionary/STPhrases.txt @@ -1220,6 +1220,7 @@ 不敢当 不敢當 不整合 不整合 不斗 不鬥 +不断发展 不斷發展 不断电系统 不斷電系統 不早了 不早了 不时之须 不時之須 @@ -1590,6 +1591,7 @@ 东欧集团 東歐集團 东海捞针 東海撈針 东涂西抹 東塗西抹 +东涌 東涌 东淨里的砖儿 東淨裏的磚兒 东游 東遊 东窗事发 東窗事發 @@ -4452,7 +4454,7 @@ 信息系统 信息系統 信托 信託 信托公司 信託公司 -信托贸易 信托貿易 +信托贸易 信託貿易 信据 信據 信步闲游 信步閒遊 信汇 信匯 @@ -9678,7 +9680,7 @@ 单交种 單交種 单价 單價 单位价格 單位價格 -单位信托 單位信托 +单位信托 單位信託 单位切向量 單位切向量 单位制 單位制 单位向量 單位向量 @@ -15185,6 +15187,7 @@ 喂它 餵它 喂我 餵我 喂母乳 餵母乳 +喂牛 餵牛 喂狗 餵狗 喂猪 餵豬 喂眼 喂眼 @@ -17367,7 +17370,7 @@ 大核 大核 大梁 大梁 大樑 大楼监控系统 大樓監控系統 -大欖涌 大欖涌 +大榄涌 大欖涌 大欲 大欲 大武仑 大武崙 大气团 大氣團 @@ -29565,7 +29568,6 @@ 杰里森 傑里森 杰里科 傑里科 杰里米 傑里米 -東涌 東涌 杳无人烟 杳無人煙 松一下 鬆一下 松一些 鬆一些 @@ -31560,11 +31562,11 @@ 求胜心 求勝心 求过于供 求過於供 求道于盲 求道於盲 -汇业 匯業 -汇业财经集团 匯業財經集團 -汇业银行 匯業銀行 -汇丰 匯豐 -汇丰银行 匯豐銀行 +汇业 滙業 +汇业财经集团 滙業財經集團 +汇业银行 滙業銀行 +汇丰 滙豐 +汇丰银行 滙豐銀行 汇付 匯付 汇价 匯價 汇信 匯信 @@ -31861,7 +31863,7 @@ 沙里淘金 沙裏淘金 沙雕 沙雕 沙雕赛 沙雕賽 -沙魚涌 沙魚涌 +沙鱼涌 沙魚涌 沟谷 溝谷 没个出豁 沒個出豁 没个好结果 沒個好結果 @@ -34942,7 +34944,6 @@ 甜水面 甜水麪 甜萝卜 甜蘿蔔 甜面酱 甜麪醬 -甜面醬 甜麪醬 生个 生個 生了 生了 生于 生於 @@ -34982,7 +34983,7 @@ 生态系统 生態系統 生情发意 生情發意 生技医药 生技醫藥 -生旦淨末丑 生旦淨末丑 +生旦净末丑 生旦淨末丑 生栋复屋 生棟覆屋 生死别离 生死別離 生死斗 生死鬥 @@ -35017,6 +35018,7 @@ 生词表 生詞表 生迭水准 生迭水準 生锈 生鏽 +生长发育 生長發育 生长板 生長板 生面 生面 生面团 生麪糰 @@ -35351,6 +35353,7 @@ 痰症 痰症 痲痹不了 痲痹不了 痲痺不了 痲痺不了 +痴儿 痴兒 痴呆症 癡呆症 痴念 癡念 痴虫 癡蟲 @@ -37283,6 +37286,7 @@ 竹节虫 竹節蟲 竹苞松茂 竹苞松茂 竹野內丰 竹野內豐 +竺乾 竺乾 笃志 篤志 笃志好学 篤志好學 笃志爱古 篤志愛古 @@ -41716,6 +41720,7 @@ 蚕种 蠶種 蚕豆症 蠶豆症 蚜虫 蚜蟲 +蚝涌 蠔涌 蚵仔面线 蚵仔麪線 蛀虫 蛀蟲 蛆虫 蛆蟲 @@ -41860,7 +41865,6 @@ 蟾彩 蟾彩 蠁干 蠁幹 蠓虫 蠓蟲 -蠔涌 蠔涌 蠕虫 蠕蟲 蠕虫形 蠕蟲形 蠢虫 蠢蟲 @@ -48575,7 +48579,6 @@ 魔板 魔板 魔表 魔錶 魔赛克 魔賽克 -鰂魚涌 鰂魚涌 鱼丸粗面 魚丸粗麪 鱼台 魚臺 鱼台县 魚臺縣 @@ -48604,6 +48607,7 @@ 鲇鱼 鮎魚 鲋鱼困涸辙难待西江水 鮒魚困涸轍難待西江水 鲍德里亚 鮑德里亞 +鲗鱼涌 鰂魚涌 鲜于 鮮于 鲜彩 鮮彩 鲜明个性 鮮明個性 diff --git a/data/dictionary/TSPhrases.txt b/data/dictionary/TSPhrases.txt index 06e6596..36e4dec 100644 --- a/data/dictionary/TSPhrases.txt +++ b/data/dictionary/TSPhrases.txt @@ -143,6 +143,7 @@ 示覆 示复 神祇 神祇 稟覆 禀复 +竺乾 竺乾 答覆 答复 篤麼 笃麽 簡單明瞭 简单明了 diff --git a/package-lock.json b/package-lock.json index 9245fba..5a85086 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,11 +1,12 @@ { "name": "opencc", - "version": "1.1.1", + "version": "1.1.5", "lockfileVersion": 2, "requires": true, "packages": { "": { - "version": "1.1.1", + "name": "opencc", + "version": "1.1.5", "hasInstallScript": true, "license": "Apache-2.0", "dependencies": { @@ -244,7 +245,6 @@ "dependencies": { "anymatch": "~3.1.1", "braces": "~3.0.2", - "fsevents": "~2.3.1", "glob-parent": "~5.1.0", "is-binary-path": "~2.1.0", "is-glob": "~4.0.1", diff --git a/package.json b/package.json index d629b3f..0f91397 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "opencc", - "version": "1.1.4", + "version": "1.1.5", "description": "Conversion between Traditional and Simplified Chinese", "author": "Carbo Kuo ", "license": "Apache-2.0", diff --git a/python/opencc/clib/__init__.py b/python/opencc/clib/__init__.py new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/python/opencc/clib/__init__.py @@ -0,0 +1 @@ + diff --git a/release-pypi-linux.sh b/release-pypi-linux.sh index 4748001..537e0dc 100644 --- a/release-pypi-linux.sh +++ b/release-pypi-linux.sh @@ -25,8 +25,10 @@ bash ${MINICONDA_FILENAME} -b -f -p $HOME/miniconda3 export PATH=$HOME/miniconda3/bin:$PATH eval "$(conda shell.bash hook)" -for VERSION in 3.7 3.8 3.9 3.10; do +for VERSION in 3.7 3.8 3.9 3.10 3.11; do # Create and activate environment + conda config --add channels conda-forge + conda config --set channel_priority strict conda create -y -n py$VERSION python=$VERSION conda activate py$VERSION diff --git a/release-pypi-macos.sh b/release-pypi-macos.sh index 2862fbf..e1ddcad 100644 --- a/release-pypi-macos.sh +++ b/release-pypi-macos.sh @@ -12,8 +12,10 @@ bash ${MINICONDA_FILENAME} -b -f -p $HOME/miniconda3 export PATH=$HOME/miniconda3/bin:$PATH eval "$(conda shell.bash hook)" -for VERSION in 3.7 3.8 3.9 3.10; do +for VERSION in 3.7 3.8 3.9 3.10 3.11; do # Create and activate environment + conda config --add channels conda-forge + conda config --set channel_priority strict conda create -y -n py$VERSION python=$VERSION conda activate py$VERSION diff --git a/release-pypi-windows.cmd b/release-pypi-windows.cmd index 58dc212..afd0ec0 100644 --- a/release-pypi-windows.cmd +++ b/release-pypi-windows.cmd @@ -1,7 +1,7 @@ @echo off setlocal EnableDelayedExpansion -SET VERSIONS=3.7 3.8 3.9 3.10 +SET VERSIONS=3.7 3.8 3.9 3.10 3.11 SET SOURCEDIR=%cd% REM Build packages @@ -10,6 +10,9 @@ for %%v in (%VERSIONS%) do ( REM Create and activate environment cd %ROOT_DIR% + CALL C:\Miniconda/condabin/conda.bat config --add channels conda-forge + CALL C:\Miniconda/condabin/conda.bat config --set channel_priority strict + CALL C:\Miniconda/condabin/conda.bat create -y -n py%%v python=%%v if !ERRORLEVEL! NEQ 0 (EXIT !ERRORLEVEL!) CALL C:\Miniconda/condabin/conda.bat activate py%%v diff --git a/setup.py b/setup.py index ed06259..c6f7bad 100644 --- a/setup.py +++ b/setup.py @@ -151,8 +151,13 @@ class BDistWheelCommand(wheel.bdist_wheel.bdist_wheel, object): if sys.platform == 'darwin': _, _, _, _, machine = os.uname() - return 'macosx-10.9-{}'.format(machine) - + if machine == 'x86_64': + return 'macosx-10.9-{}'.format(machine) + if machine == 'arm64': + return 'macosx-11.0-{}'.format(machine) + else: + raise NotImplementedError + if os.name == 'posix': _, _, _, _, machine = os.uname() return 'manylinux1-{}'.format(machine) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 11d14e4..c0a0b10 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -132,9 +132,9 @@ set_target_properties( OUTPUT_NAME opencc VERSION - 1.1.3 + ${OPENCC_VERSION_MAJOR}.${OPENCC_VERSION_MINOR}.${OPENCC_VERSION_REVISION} SOVERSION - 1.1 + ${OPENCC_VERSION_MAJOR}.${OPENCC_VERSION_MINOR} ) # Installation